﻿@{
    ViewBag.Title = "ThemUser";
    Layout = "~/Views/Shared/Admin/_AdminLayout.cshtml";
}
@model BabyToys.Models.ViewModel.KhachHangViewModel
@using(Html.BeginForm())
{
<div style="background: #fff; text-align: right; height: 40px; width: 100%; border: 1px solid #ccc;">
    <span style="font-size: 18px; font-weight: bold; float: left; padding-top: 17px;padding-left: 15px;">SỬA THÔNG TIN USER</span>
    <table style="float: right; font-size: 11px; color: #262626;">
        <tr>
            <td class="control">
                <input type="submit" class="large button green input" value="Lưu">
            </td>
            <td class="control">
                <a href="~/AdminUser/PhanQuyen" class="large button black input">Đóng</a>
            </td>

        </tr>
    </table>
</div>
<div class="Main_nhap" style="">
    <div class="Main_nhap_left">
        <div style="padding-top: 10px;">
            <div style="border: 1px solid #ccc; background: #e7e7e7; width: 99%; padding: 8px; min-height: 200px; text-shadow: #fff 0px 1px 0px;">
                <table class="Conten_main_sanpham" cellpadding="0" style="border: 1px solid #fff;">
                    <tr class="row">
                        <td class="box_title">Tên đăng nhập</td>
                        <td class="box_object">
                            @Html.HiddenFor(model=>model.Id,new {@class="input_text", style="width: 300px"})
                            @Html.HiddenFor(model=>model.TenDangNhap,new {@class="input_text", style="width: 300px"})
                            <input type="text" class="input_text" style="width: 300px" disabled="disabled" value="@Html.DisplayFor(model=>model.TenDangNhap)"/>
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Tên đầy đủ</td>
                        <td class="box_object">
                            @Html.TextBoxFor(model=>model.TenDayDu,new {@class="input_text", style="width: 300px"})
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Email</td>
                        <td class="box_object">
                           @Html.TextBoxFor(model=>model.Email,new {@class="input_text", style="width: 300px"})
                           <span class="error">@Html.ValidationMessageFor(model=>model.Email)</span>
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Địa chỉ</td>
                        <td class="box_object">
                           @Html.TextBoxFor(model=>model.DiaChi,new {@class="input_text", style="width: 300px"})
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Số điện thoại</td>
                        <td class="box_object">
                            @Html.TextBoxFor(model=>model.SoDienThoai,new {@class="input_text", style="width: 300px"})
                            <span class="error">@Html.ValidationMessageFor(model=>model.SoDienThoai)</span>
                        </td>
                    </tr>
                     <tr class="row">
                        <td class="box_title">Hoạt động</td>
                        <td class="box_object">
                           @Html.CheckBoxFor(model=>model.IsActive)
                            Cho phép tài khoản này hoạt động
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title" colspan="2">
                            <hr />
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Mật khẩu</td>
                        <td class="box_object">
                            @Html.TextBoxFor(model=>model.MatKhau,new {@class="input_text", style="width: 300px"})<span>(*)</span>
                            <span class="error">@Html.ValidationMessageFor(model=>model.MatKhau)</span>
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Nhập lại mật khẩu</td>
                        <td class="box_object">
                            @Html.TextBoxFor(model=>model.XacNhanMatKhau,new {@class="input_text", style="width: 300px"})<span>(*)</span>
                            <span class="error">@Html.ValidationMessageFor(model=>model.XacNhanMatKhau)</span>
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title" colspan="2">
                            <hr />
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="box_title">Loại khách hàng</td>
                        <td class="box_object">
                            @Html.DropDownList("IdLoaiKhachHang")
                            <br />
                        </td>
                    </tr>
                   
                </table>
            </div>
        </div>
    </div>
</div>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}